<{include file="header.html"}>

<script type="text/javascript">
	function transformNow(id)
	{
		confirmed = window.confirm('<{$smarty.const._MSG_TRANSFORM_TO_THIS_USER|utf8_escape_js}>');

		if (confirmed)
		{
			openwindow("<{$smarty.const.APPLICATION_URL|cat:'/login/login/'}>?act=<{$smarty.const.ACT_TRANSFORM}>&id=" + id);
		}
	}
</script>

	<div class="one_third">
		<div class="box_tool">
			<div class="box_head"><{$smarty.const._LB_TOOLBOX|utf8_escape_html}></div>
			<div class="box_content">
                            <a href="<{$smarty.const.APPLICATION_URL}>/about_us/form/">
                            <{$smarty.const._LB_ADD_NEW_PAGE|utf8_escape_html}></a>
			</div>
		</div>

		<div class="spacer"></div>
                <div class="box_tool">
                        <div class="box_head"><{$smarty.const._LB_FILTER|utf8_escape_html}></div>
                        <div class="box_content" id="filter_panel">
                                <table>
                                <tr>
                                        <td width="40%"><{$smarty.const._LB_NOM|utf8_escape_html}>&nbsp;:&nbsp;</td>
                                        <td width="60%">
                                                <input type="text" name="nom" id="nom" value="<{$nom|utf8_escape_html}>" style="width: 180px;"/>
                                        </td>
                                </tr>
                                <tr>
                                        <td class="submit" colspan="2" style="padding-top:10px;">
                                                <a class="tribullet" style="float:right" id="obj_search" href="#" onclick="javascript:getContent();"><{$smarty.const._LB_SEARCH}></a>
                                        </td>
                                </tr>
                                </table>
                        </div>
                </div>
</div>

	<div class="two_third">
            <div class="box_two_third">
            <div class="box_head"><{$smarty.const._LB_ABOUT_US|utf8_escape_html}></div>
            <div class="box_content">
            <div>
                <{if $list->N > 0}>
                    <{while $list->fetch()}>			
                        <div class="object regie" style="margin-left:15px">
                                <div class="head">
                                        <span class="right">
                                            <{if $list->STATUS==1}>
                                            <a href="<{$smarty.const.APPLICATION_URL}>/about_us/form/?id=<{$list->ID}>&amp;act=<{$smarty.const.ACT_DISABLE}>">
                                                        <img title="<{$smarty.const._LB_DISABLE|utf8_escape_html}>" alt="" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DISABLE}>" class="small"/>
                                                </a>
                                            <{else}>
                                                <a href="<{$smarty.const.APPLICATION_URL}>/about_us/form/?id=<{$list->ID}>&amp;act=<{$smarty.const.ACT_ENABLE}>">
                                                    <img title="<{$smarty.const._LB_ENABLE|utf8_escape_html}>" alt="" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_ENABLE}>" class="small"/>
                                                </a>
                                            <{/if}>
                                            
                                            <a href="<{$smarty.const.APPLICATION_URL}>/about_us/form/?id=<{$list->ID|utf8_escape_html}>">
                                                        <img title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" alt="" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" class="small"/>
                                                </a>

                                            <a onclick='return confirm("<{$smarty.const._LB_CONFIRM_DELETE_PAGE|utf8_escape_jshtml}>?");' href="<{$smarty.const.APPLICATION_URL}>/about_us/form/?act=<{$smarty.const.ACT_DELETE}>&amp;id=<{$list->ID|utf8_escape_html}>">
                                                        <img title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" alt="" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE}>" class="small"/>
                                                </a>
                                        </span>

                                        <img alt="" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_TECH_DATA_TEMPLATE_SMALL}>" class="small"/>
                                        <{$list->TITLE|utf8_escape_html}>
                                </div>

                                <div class="content">
                                        <{$list->SHORT_DESCRIPTION|utf8_escape_html}>
                                </div>
                        </div>
                    <{/while}>
                <{else}>
                        <{$smarty.const._LB_NO_PAGE|utf8_escape_html}>
                <{/if}>
            </div>
	</div>
	<div class="center" style="margin-top:15px;">
            <div class="pagination">
                <{if $array_size > 0}>
                        <{$pager->display()}>
                <{/if}>
            </div>
	</div>

<script type="text/javascript">
	function getContent()
	{
		var nom = document.getElementById('nom');
		var obj_frm_filter = document.getElementById('frm_filter');

		var a_nom = nom.value;
		obj_frm_filter.action = '<{$smarty.const.APPLICATION_URL}>/user_admin/list/?a_nom=' + a_nom.replace("&", "%26");

		document.getElementById('a_nom').value = nom.value;
		obj_frm_filter.submit();
	}
</script>

<{** FORM for Filter **}>
<form id='frm_filter' method="post" action="">
	<input type="hidden" name="a_nom" id="a_nom" />
</form>

<{include file="footer.html"}>
